<?php
require_once 'config.php';
$action = (isset($_GET['action']) && $_GET['action'] != '') ? $_GET['action'] : 'view';

switch ($action) {
	case 'add' :
		addToCart();
		break;
	case 'update' :
		updateCart();
		break;
	case 'delete' :
		deleteFromCart();
		break;
	case 'checkout' :
		checkout();
}

function addToCart()
{
}

function updateCart()
{
}

function deleteFromCart()
{
}

function checkout()
{
}
?>